/**
 * 
 */
package com.blog.util.pathORurl;

import java.net.URL;

import org.apache.log4j.Logger;

/**
 * 获取系统的路径
 * @author Administrator
 *
 */
public class Path {
	static Logger log = Logger.getLogger(Path.class);
	public static String getClassesPath(){
		URL url = ClassLoader.getSystemResource("");
		String subStr = url.toString().substring(6);
		log.info("classes文件的的绝对路径为："+subStr);
		return subStr;
	}
	public static void main(String[] args) {
		log.info(getClassesPath());
	}
	
}
